package com.briup.cms.dao;

import com.briup.cms.bean.Config;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper

public interface ConfigMapper {

    @Select("select * from config")
    List<Config> selectAll();
    @Insert("insert into config values(null,#{key},#{val})")
    void insert(Config article);
    @Update("UPDATE config set `key`=#{key}, val=#{val} WHERE id=#{id}")
    void update(Config article);
    @Delete("delete from config where id=#{id}")
    void deleteById(Long id);
}
